﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserView.master" AutoEventWireup="true"
    CodeBehind="MbCompany.aspx.cs" Inherits="BestBuy.PageUser.MbCompany" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/Seller.css" rel="stylesheet" type="text/css" />
    <link href="../Styles/Manager.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Panel ID="Panel4" runat="server" CssClass="left-side-bar bs-docs-sidebar">
        <ul class="nav nav-list bs-docs-sidenav">
            <li class="active" style="text-align: center;"><a href="#">Company Profile</a></li>
            <li><a id="A12" runat="server" href="MbCompany.aspx"><i class="icon-chevron-right"></i>
                Edit Company Profile</a></li>
            <li><a id="A13" runat="server" href="ViewCompanyaspx.aspx"><i class="icon-chevron-right">
            </i>View Company Profile</a></li>
        </ul>
    </asp:Panel>
    <div class="main-content">
        <asp:ScriptManager ID="ScriptManage1" runat="server">
        </asp:ScriptManager>
        <div class="head">
            Company Details
        </div>
        <table border="0" cellspacing="3" cellpadding="3" width="100%">
            <tr>
                <td class="td">
                    Company Name :
                </td>
                <td>
                    <asp:TextBox ID="txtCompany" runat="server"></asp:TextBox>
                    <asp:Label ID="lbCompany" runat="server" Text="Please enter company" Visible="False"
                        ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Business Type :
                </td>
                <td>
                    <asp:DropDownList ID="cbBusiness" runat="server">
                        <asp:ListItem Value="">Select Business Type</asp:ListItem>
                        <asp:ListItem Value="">---------------------</asp:ListItem>
                        <asp:ListItem Value="0">Agents</asp:ListItem>
                        <asp:ListItem Value="1">Association</asp:ListItem>
                        <asp:ListItem Value="2">Business Service</asp:ListItem>
                        <asp:ListItem Value="3">Buying Office</asp:ListItem>
                        <asp:ListItem Value="4">Distributors/Wholesalers</asp:ListItem>
                        <asp:ListItem Value="5">Exporters</asp:ListItem>
                        <asp:ListItem Value="6">Importers</asp:ListItem>
                        <asp:ListItem Value="7">Manufacturing</asp:ListItem>
                        <asp:ListItem Value="8">Others</asp:ListItem>
                        <asp:ListItem Value="9">Trading</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="lbbusiness" runat="server" Text="Select type, please!" Visible="False"
                        ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Main Markets :
                </td>
                <td>
                    <asp:CheckBoxList ID="ChecklistMarket" runat="server" EnableTheming="True" RepeatColumns="2"
                        Width="300px">
                        <asp:ListItem Value="0">Americas</asp:ListItem>
                        <asp:ListItem Value="1">Asia</asp:ListItem>
                        <asp:ListItem Value="2">Middle East</asp:ListItem>
                        <asp:ListItem Value="3">Wordwide</asp:ListItem>
                        <asp:ListItem Value="4">Africa</asp:ListItem>
                        <asp:ListItem Value="5">Europe</asp:ListItem>
                    </asp:CheckBoxList>
                    <asp:Label ID="lbmarket" runat="server" Text="please check Market" Visible="False"
                        ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Industry :
                </td>
                <td>
                    <asp:DropDownList ID="cbIndustry" runat="server" DataValueField="IDDanhMuc" DataTextField="TenDanhMuc">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Key Products & Services:
                </td>
                <td>
                    <asp:TextBox ID="txtKeyProduct" runat="server" TextMode="MultiLine" Width="50%"></asp:TextBox><asp:Label
                        ID="lbDescription" runat="server" Text="please,enter description " Visible="False"
                        ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Category
                </td>
                <td>
                    <a id="lnkPopup" runat="server" style="display: none"></a>
                    <asp:LinkButton ID="lbtnChangeCategory" runat="server" Text="Change Category" OnClick="lbtnChangeCategory_Click"></asp:LinkButton>
                    &nbsp; &nbsp;
                    <asp:Button ID="btRemoveSelect" runat="server" Text="Remove Selected" OnClick="btRemoveSelect_Click" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:ListBox ID="CategoryListBox" runat="server" SelectionMode="Single"></asp:ListBox>
                    <asp:Label ID="lbCategory" runat="server" ForeColor="Red" Text="Select Category"
                        Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Company Employees:
                </td>
                <td>
                    <asp:DropDownList ID="cbEmployees" runat="server">
                        <asp:ListItem Value="">Select Employees</asp:ListItem>
                        <asp:ListItem Value="">-----------------</asp:ListItem>
                        <asp:ListItem Value="1">1-5</asp:ListItem>
                        <asp:ListItem Value="2">6-10</asp:ListItem>
                        <asp:ListItem Value="3">11-15</asp:ListItem>
                        <asp:ListItem Value="4">16-25</asp:ListItem>
                        <asp:ListItem Value="5">26-50</asp:ListItem>
                        <asp:ListItem Value="6">51-100</asp:ListItem>
                        <asp:ListItem Value="7">More than 100</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Label ID="lbEmployee" runat="server" Text="select employees" Visible="False"
                        ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Year Establish
                </td>
                <td>
                    <asp:DropDownList ID="cbYear" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Company Introduction:
                </td>
                <td>
                    <asp:TextBox ID="txtIntroduct" runat="server" TextMode="MultiLine" Width="50%"></asp:TextBox>
                    <asp:Label ID="lbIntroduce" runat="server" Text="please, enter introduce" Visible="False"
                        ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Website:
                </td>
                <td>
                    <asp:TextBox ID="txtWebsite" runat="server"></asp:TextBox>
                </td>
            </tr>
        </table>
        <br />
        <div class="head">
            Company Logo and Brochures</div>
        <table border="0" cellspacing="3" cellpadding="3" width="100%">
            <tr>
                <td class="td">
                    Company Logo:
                </td>
                <td>
                    <asp:Image ID="ImageLogo" runat="server" Width="50" Height="50" Visible="false" />
                    <asp:FileUpload ID="UploadLogo" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="td">
                    Company Brochures:
                </td>
                <td>
                    <asp:Literal ID="txtBrochoure" runat="server"></asp:Literal><asp:FileUpload ID="UploadBrochoures"
                        runat="server" />
                </td>
            </tr>
        </table>
        <br />
        <div class="head">
            Factory Information</div>
        <table border="0" cellspacing="3" cellpadding="3" width="100%">
            <tr>
                <td class="td">
                    Factory Location:
                </td>
                <td>
                    <asp:TextBox ID="txtLocation" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Factory Size
                </td>
                <td>
                    <asp:DropDownList ID="cbFactorySize" runat="server">
                        <asp:ListItem Value="0"> Below 1000 sqm</asp:ListItem>
                        <asp:ListItem Value="1">1000-3000 sqm</asp:ListItem>
                        <asp:ListItem Value="2">3000-5000 sqm</asp:ListItem>
                        <asp:ListItem Value="3">5000-10000 sqm</asp:ListItem>
                        <asp:ListItem Value="4">10000-250000 sqm">10000-250000 sqm</asp:ListItem>
                        <asp:ListItem Value="5">250000-500000 sqm</asp:ListItem>
                        <asp:ListItem Value="6">500000-1000000 sqm</asp:ListItem>
                        <asp:ListItem Value="7">1000000 sqm and above</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Total Annual Purchase Volume:
                </td>
                <td>
                    <asp:DropDownList ID="cbTotalAnnual" runat="server">
                        <asp:ListItem Value="0">Less than 1</asp:ListItem>
                        <asp:ListItem Value="1">1 - 2.5</asp:ListItem>
                        <asp:ListItem Value="2">2.5 - 10</asp:ListItem>
                        <asp:ListItem Value="3">10 - 25</asp:ListItem>
                        <asp:ListItem Value="4">25 - 50</asp:ListItem>
                        <asp:ListItem Value="5">50 - 100</asp:ListItem>
                        <asp:ListItem Value="6">more than 100</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="td">
                    No. of R&D Staff:
                </td>
                <td>
                    <asp:DropDownList ID="cbRDStaff" runat="server">
                        <asp:ListItem Value="0">Less than 5 people</asp:ListItem>
                        <asp:ListItem Value="1">6 - 10 people</asp:ListItem>
                        <asp:ListItem Value="2">11 - 30 people</asp:ListItem>
                        <asp:ListItem Value="3">30 - 50 people</asp:ListItem>
                        <asp:ListItem Value="4">50 - 100 people</asp:ListItem>
                        <asp:ListItem Value="5">Above 100 people</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="td">
                    No. of QC staff:
                </td>
                <td>
                    <asp:DropDownList ID="cbQCStaff" runat="server">
                        <asp:ListItem Value="0">Less than 5 people</asp:ListItem>
                        <asp:ListItem Value="1">6 - 10 people</asp:ListItem>
                        <asp:ListItem Value="2">11 - 30 people</asp:ListItem>
                        <asp:ListItem Value="3">30 - 50 people</asp:ListItem>
                        <asp:ListItem Value="4">50 - 100 people</asp:ListItem>
                        <asp:ListItem Value="5">Above 100 people</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Certificate:
                </td>
                <td>
                    <asp:TextBox ID="txtCertificate" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Contract Manufacturing:
                </td>
                <td>
                    <asp:CheckBoxList ID="CheckBoxListContract" runat="server" RepeatColumns="3" Width="300px">
                        <asp:ListItem Value="0">OEM Service Offered</asp:ListItem>
                        <asp:ListItem Value="1">Design Service Offered</asp:ListItem>
                        <asp:ListItem Value="2">Buyer Label Offered</asp:ListItem>
                    </asp:CheckBoxList>
                </td>
            </tr>
        </table>
        <br />
        <div class="head">
            Other Details</div>
        <table border="0" cellspacing="3" cellpadding="3" width="100%">
            <tr>
                <td class="td">
                    Registered Capital :
                </td>
                <td>
                    <asp:DropDownList ID="cbRegisterCapital" runat="server">
                        <asp:ListItem Value="0">Less than 1</asp:ListItem>
                        <asp:ListItem Value="1">1 - 2.5</asp:ListItem>
                        <asp:ListItem Value="2">2.5 - 10</asp:ListItem>
                        <asp:ListItem Value="3">10 - 25</asp:ListItem>
                        <asp:ListItem Value="4">25 - 50</asp:ListItem>
                        <asp:ListItem Value="5">50 - 100</asp:ListItem>
                        <asp:ListItem Value="6">more than 100</asp:ListItem>
                    </asp:DropDownList>
                    Milion USD
                </td>
            </tr>
            <tr>
                <td class="td">
                    Ownership Type:
                </td>
                <td>
                    <asp:DropDownList ID="cbOwnership" runat="server">
                        <asp:ListItem Value="0">Professional Association</asp:ListItem>
                        <asp:ListItem Value="1">Partnership</asp:ListItem>
                        <asp:ListItem Value="2">LLC (Limited Liabity Corp)</asp:ListItem>
                        <asp:ListItem Value="3">Individual (Sole Proprietorship)</asp:ListItem>
                        <asp:ListItem Value="4">Corporation Limited Liabity Company</asp:ListItem>
                        <asp:ListItem Value="05">Others</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Legal Representative / CEO:
                </td>
                <td>
                    <asp:TextBox ID="txtLegalRepresentative" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="td">
                    Total Annual Sales Volume:
                </td>
                <td>
                    <asp:DropDownList ID="cbTotalAnnualSale" runat="server">
                        <asp:ListItem Value="0">Less than 1</asp:ListItem>
                        <asp:ListItem Value="1">1 - 2.5</asp:ListItem>
                        <asp:ListItem Value="2">2.5 - 10</asp:ListItem>
                        <asp:ListItem Value="3">10 - 25</asp:ListItem>
                        <asp:ListItem Value="4">25 - 50</asp:ListItem>
                        <asp:ListItem Value="5">50 - 100</asp:ListItem>
                        <asp:ListItem Value="6">more than 100</asp:ListItem>
                    </asp:DropDownList>
                    Milion USD
                </td>
            </tr>
            <tr>
                <td class="td">
                    Export Percentage:
                </td>
                <td>
                    <asp:TextBox ID="txtExportPercentage" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="td">
                    <asp:Button ID="Button1" runat="server" Text="Update" OnClick="Button1_Click" />
                </td>
                <td>
                </td>
            </tr>
        </table>
        <asp:Panel ID="panEdit" runat="server" CssClass="ModalWindow">
            <h1 class="PopUp_h1">
                Select Category
                <asp:Label ID="lbThongBaoAddCategory" runat="server" Visible="false"></asp:Label>
            </h1>
            <div>
                <asp:Label ID="lbThongBaoLimit" runat="server" Text="Limit quantity to add: "></asp:Label>
                <asp:Label ID="lbLimitQuantity" runat="server"></asp:Label>
            </div>
            <div class="select-category">
                <asp:GridView ID="gvLevel1" runat="server" AutoGenerateColumns="False" CssClass="gridviewWidth"
                    DataMember="TenDanhMuc" GridLines="None" CellPadding="4" ForeColor="#333333"
                    OnRowDataBound="gvLevel1_OnRowDataBound">
                    <Columns>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:Label ID="lbLevel" runat="server" Text=" >>"></asp:Label>
                                <asp:CheckBox ID="cbLevel" runat="server" Visible="false" AutoPostBack="true" ObjectId='<%# Eval("IDDanhMuc") %>'
                                    OnCheckedChanged="cbLevel_CheckedChanged" />
                                <asp:LinkButton ID="LinkDanhMuc" runat="server" Text='<%# Eval("TenDanhMuc") %>'
                                    OnClick="LinkDanhMucLevel1_Click" ObjectId='<%# Eval("IDDanhMuc") %>'>
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="select-category">
                <asp:GridView ID="gvLevel2" runat="server" AutoGenerateColumns="False" CssClass="gridviewWidth"
                    DataMember="TenDanhMuc" GridLines="None" CellPadding="4" ForeColor="#333333"
                    OnRowDataBound="gvLevel2_OnRowDataBound">
                    <Columns>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:Label ID="lbLevel" runat="server" Text=" >>"></asp:Label>
                                <asp:CheckBox ID="cbLevel" runat="server" Visible="false" AutoPostBack="true" ObjectId='<%# Eval("IDDanhMuc") %>'
                                    OnCheckedChanged="cbLevel_CheckedChanged" />
                                <asp:HiddenField ID="hidIDDanhMuc" runat="server" Value='<%# Eval("IDDanhMuc") %>' />
                                <asp:LinkButton ID="LinkDanhMuc" runat="server" Text='<%# Eval("TenDanhMuc") %>'
                                    OnClick="LinkDanhMucLevel2_Click" ObjectId='<%# Eval("IDDanhMuc") %>'></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <div class="select-category">
                <asp:GridView ID="gvLevel3" runat="server" AutoGenerateColumns="False" CssClass="gridviewWidth"
                    DataMember="TenDanhMuc" GridLines="None" CellPadding="4" ForeColor="#333333"
                    OnRowDataBound="gvLevel3_OnRowDataBound">
                    <Columns>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:Label ID="lbLevel" runat="server" Text=" >>"></asp:Label>
                                <asp:CheckBox ID="cbLevel" runat="server" Visible="false" AutoPostBack="true" ObjectId='<%# Eval("IDDanhMuc") %>'
                                    OnCheckedChanged="cbLevel_CheckedChanged" />
                                <asp:HiddenField ID="hidIDDanhMuc" runat="server" Value='<%# Eval("IDDanhMuc") %>' />
                                <asp:LinkButton ID="LinkDanhMuc" runat="server" Text='<%# Eval("TenDanhMuc") %>'
                                    OnClick="LinkDanhMucLevel3_Click" ObjectId='<%# Eval("IDDanhMuc") %>'></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
            <br />
            <div style="width: 100%; text-align: center;">
                <asp:Button ID="btnAddCategory" runat="server" Text="Add Category" OnClick="btnAddCategory_OnClick" />
                <asp:Button ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_OnClick" />
            </div>
        </asp:Panel>
        <ajaxToolkit:ModalPopupExtender ID="mpeDanhMuc" runat="server" TargetControlID="lnkPopup"
            PopupControlID="panEdit" BackgroundCssClass="modalBackground">
        </ajaxToolkit:ModalPopupExtender>
    </div>
</asp:Content>
